package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.MyCollection;
import cn.wolfcode.trip.base.query.MyCollectionQueryObject;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MyCollectionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MyCollection record);

    MyCollection selectByPrimaryKey(Long id);

    List<MyCollection> selectAll();

    int updateByPrimaryKey(MyCollection record);

    List<MyCollection> query(MyCollectionQueryObject qo);

    void deleteByThreeIdAndUserId(@Param("strategydetailId") Long strategydetailId, @Param("travelId") Long travelId, @Param("dailyId") Long newsId, @Param("userId") Long userId);

    Integer selectByThreeIdAndUserId(@Param("strategydetailId") Long strategydetailId, @Param("travelId") Long travelId, @Param("dailyId") Long newsId, @Param("userId") Long userId);


    Integer selectCollection(QueryObject qo);


    Integer selecttravelId(MyCollectionQueryObject qo);

    Integer selectstrategydetaiId(MyCollectionQueryObject qo);

    Integer selectdailyId(MyCollectionQueryObject qo);
}